# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libqmycroft
pkgver=0_git20210702
pkgrel=0
_commit="79f60584bd83f1a0b3b69b40dbe848e445acd3b0"
pkgdesc="Mycroft integration library using a mock api to integrate apps as skill in Mycroft"
url="https://invent.kde.org/libraries/libqmycroft"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="Apache-2.0"
makedepends="
	extra-cmake-modules
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	qt5-qtwebsockets-dev
	"
source="https://invent.kde.org/libraries/libqmycroft/-/archive/$_commit/libqmycroft-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
89102c3733c6bba9f23581266818d2a00606b045bf02d81fa13ac3ebd5602fd9d7dacac2939817a79b0b6c3fb52031709c02365630447cd376c79e74507d6609  libqmycroft-79f60584bd83f1a0b3b69b40dbe848e445acd3b0.tar.gz
"
